
json = require('json');

IPing_Invoker = { };
IPing_Invoker[1930465604] = 'Ping';

function IPing_Invoker.Bind(impl)

          return function(messageid,jsonstring)
                      local methodName = IPing_Invoker[messageid];
                      if( nil ~= methodName ) then
                          local arg = json.decode(jsonstring);
                          impl[methodName](arg);
                      else
                          print('method not found,messageid = ' .. messageid);
                      end
                 end
end